const readline = require('readline-sync');

//定义一个变量存储数据1234，分别输出个位，十位，百位，千位数字
//声明
let num = 1234;
let ge = num % 10;//对10取余
// let shi = parseInt(num % 100 / 10);
let shi = parseInt(num / 10) % 10;
let qian = parseInt(num / 1000);


let num2 = 13456;
let ge2 = num2 % 10;
let shi2 = parseInt(num2 / 10 % 10);
let bai2 = parseInt(num2 / 100 % 10);
let qian2 = parseInt(num2 / 1000 % 10);
let wan2 = parseInt(num2 / 10000);
console.log(`个${ge2}十${shi2}百${bai2}千${qian2}万${wan2}`);


// 7.输入两个数字，相减四舍五入（.toFixed() 把保留几位小数写在括号里）

console.log('请输入两个数字');
let n1 = readline.question();
let n2 = readline.question();
let n = n1 - n2;
console.log(n);
console.log(n.toFixed(2));


